﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAO;
namespace BUS
{
    public class BUSBanHang
    {
        public static DataTable DSKH()
        {
            return DAOKhachHang.DSKhachHang();
        }
        public static DataTable DSMon()
        {
            return DAOBanHang.DSMonAn();
        }
        public static DataTable TimKH(string chuoi)
        {
            return DAOBanHang.KQTimKH(chuoi);
        }
        public static DataTable Timmonan(string chuoi)
        {
            return DAOBanHang.KQTimMonAn(chuoi);
        }
        public static int LuuPhieuXuat(string makh, DateTime ngay, float tongtien)
        {
            return DAOBanHang.LuuPhieuXuat(makh, ngay, tongtien);
        }
        public static int LuuChiTietPhieuXuat(int maphieu, DataTable phieu)
        {
            return DAOBanHang.LuuChiTietPhieuXuat(maphieu, phieu);
        }
        public static DataTable BangKhuyenMai()
        {
            return DAOBanHang.BangKhuyenMai();
        }
        public static int CapNhatDiemKH(int id, int diem)
        {
            return DAOBanHang.CapNhatDiemKH(id, diem);
        }
    }
}
